package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class LookHistory {

    /**
     *
     *观看历史id
     */
    private Integer id;

    /**
     *
     *用户id
     */
    @NotNull
    private Integer userId;

    /**
     *
     *商品名称
     */
    @NotNull
    private String goodsName;

    /**
     *
     *浏览时间
     */
    @NotNull
    private String looktime;

    /**
     *
     *商品图片路径
     */
    @NotNull
    private String photoUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getLooktime() {
        return looktime;
    }

    public void setLooktime(String looktime) {
        this.looktime = looktime == null ? null : looktime.trim();
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }
}